
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;启动广告</span>
			<span style="float: right;">
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<form action="./?controller=advertising&action=doadd" method="post">
<input type="hidden" name="id" value="<?php echo $this->data['id'];?>" />
<input type="hidden" name="machine_type" value="<?php echo $this->machine_type;?>" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr>
		<td class="altbg1">广告类型</td>
		<td class="altbg2">
			<label>图片<input type="radio" name="type" value="1" <?php echo (int)$this->data['type'] == 1 ? 'checked' : '';?> /></label>
			&nbsp;&nbsp;
			<label>视频<input type="radio" name="type" value="2" <?php echo (int)$this->data['type'] == 2 ? 'checked' : '';?> /></label>
		</td>
	</tr>
	<tr>
		<td class="altbg1">文件地址</td>
		<td class="altbg2">
			<input class="input" name="contenturl" value="<?php echo $this->data['contenturl'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">广告地址</td>
		<td class="altbg2">
			<input class="input" name="openurl" value="<?php echo $this->data['openurl'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">尺寸</td>
		<td class="altbg2">
			<input class="input" name="contentsize" value="<?php echo $this->data['contentsize'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">停留时间</td>
		<td class="altbg2">
			<input class="input" name="duration" value="<?php echo $this->data['duration'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">能否主动关闭广告</td>
		<td class="altbg2">
			<label>能<input type="radio" name="closeflag" value="1" <?php echo (int)$this->data['closeflag'] == 1 ? 'checked' : '';?> /></label>
			&nbsp;&nbsp;
			<label>不能<input type="radio" name="closeflag" value="0" <?php echo (int)$this->data['closeflag'] == 0 ? 'checked' : '';?> /></label>
		</td>
	</tr>
	<tr>
		<td class="altbg1" colspan=2 align="center">
			<input class="button" type="submit" value="确定" />
			&nbsp;
			<input class="button" type="reset" value="重置" />
		</td>
	</tr>
</table>
</form>


